package com.example.demo.mapper;

import com.example.demo.entity.WorkOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liyuanlin
 * @since 2024-08-15
 */
@Mapper
public interface WorkOrderMapper extends BaseMapper<WorkOrder> {

    // 查询7月每天的工单总量、超期率
    List<Map<String, Object>> selectDailyOrderStatsByMonth(@Param("month") String month);

    //查询7月每个部门的工单总量、超期率
    List<Map<String, Object>> selectDeptOrderStatsByMonth(@Param("month") String month);

    //查询7月每个工单类型的工单总量、超期率
    List<Map<String, Object>> selectTypeOrderStatsByMonth(@Param("month") String month);


}
